---
layout: single
elementName: time
---

<section id="time" class="element">
  <header class="element-header">
    <nav class="element-links">
        <span>
          Type: <strong>inline</strong>
        </span>
      <span>
        Self-closing:
        <strong>
            No
        </strong>
      </span>
      <a class="element-links-direct" href="{{site.url}}/element/time/" data-element-name="time" data-tooltip="Single page for this element">Permalink</a>
      <a class="element-share" data-tooltip="Share on Twitter or Facebook" data-element-name="time">Share</a>
        <a target="_blank" href="https://caniuse.com/#feat=html5semantic" data-tooltip="See on Can I use…" rel="external">Can I use</a>
      <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/HTML/Element/time" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
    </nav>
    <h2 class="element-name">
      <a href="#time">
        <span>#</span>
        time
      </a>
    </h2>
    <div class="element-description">
      <p>Defines a <strong>time</strong> on a 24h clock.</p>

    </div>
  </header>

      <div id="time-example-0" class="example">
        <p class="example-label">
          <strong>Example:</strong>
          <a class="example-clipboard" data-tooltip="Click to copy code" data-clipboard-target="#time-example-0-code">Copy</a>
        </p>
        <article class="example-preview">
            <div class="example-output">The game starts at <time datetime="2017-04-29T19:00">19:00</time>.</div>
          <div id="time-example-0-code" class="example-code">{% highlight html %}The game starts at <time datetime="2017-04-29T19:00">19:00</time>.{% endhighlight %}</div>
        </article>
      </div>

    <article id="time-datetime" class="attribute">
      <header class="attribute-header">
        <h3 class="attribute-name">
          <code class="tag" data-tooltip="Click to copy" data-clipboard-text="datetime">
            datetime
          </code>
        </h3>
        <div class="attribute-description">
          <p>Defines the time and date.</p>

        </div>
      </header>

      <div class="attribute-values">
          <article id="time-datetime-2017-04-29t1900" class="value">
            <header class="value-header">
                <h4 class="value-name">
                  <code class="tag" data-tooltip="Click to copy datetime=&quot;2017-04-29T19:00&quot;" data-clipboard-text="datetime=&quot;2017-04-29T19:00&quot;">
                      "2017-04-29T19:00"
                  </code>
                </h4>
              <div class="value-description">
                <p>The value needs to be a valid <a href="https://www.w3.org/TR/html51/infrastructure.html#dates-and-times">time string</a>.</p>

              </div>
            </header>
            <aside class="value-preview">
              <div class="value-output"><time  datetime="2017-04-29T19:00"></time></div>
            </aside>
          </article>
      </div>
    </article>
</section>
